home *** CD-ROM | disk | FTP | other *** search
/ Celestin Apprentice 5 / Apprentice-Release5.iso / Source Code / C++ / Frameworks / Sprocket Framework DR2 / Sprocket Framework / ErrorReporter.cp < prev    next >
Text File  |  1996-05-08  |  1KB  |  63 lines

  1. /*
  2.  
  3.     File:        ErrorReporter.cp
  4.     Project:    Sprocket Framework 1.1 fc1 of 5/10/96
  5.     Contains:    Simple error reporting function
  6.     To Do:        ?
  7.  
  8.     Sprocket Major Contributors:
  9.     ----------------------------
  10.     Dave Falkenburg, producer of Sprocket 1.0
  11.     Bill Hayden,     producer of Sprocket 1.1
  12.     Steve Sisak,     producer of the upcoming Sprocket 2.0
  13.     
  14.     Pete Alexander        Steve Falkenburg        Randy Thelen
  15.     Eric Berdahl        Nitin Ganatra            Leonard Rosenthal
  16.     Marshall Clow        Dave Hershey            Dean Yu
  17.     Tim Craycroft        Dave Mark                
  18.     David denBoer        Gary Powell
  19.     Cameron Esfahani    Jon Summers                Apple Computer, Inc.
  20.         
  21.     Comments, Additions, or Corrections:
  22.     ------------------------------------
  23.     Bill Hayden, Nikol Software <nikol@codewell.com>
  24.  
  25. */
  26.  
  27.  
  28. #include "SprocketConstants.h"
  29. #include "UString.h"
  30. #include "UDialog.h"
  31. #include "ErrorReporter.h"
  32.  
  33.  
  34. /*****************************************************************************/
  35.  
  36.  
  37.  
  38. TErrorReporter::TErrorReporter(OSErr err, char* file, long line)
  39. {
  40.     Str255    errStr, lineStr;
  41.     
  42.     NumToString(err, errStr);
  43.     NumToString(line, lineStr);
  44.     c2p(file);
  45.  
  46. #if qDebug
  47.     //SysBreakStr("\pError State: TErrorReporter Called");
  48. #endif
  49.     
  50.     ParamText(errStr, (StringPtr)file, lineStr, "\p");
  51.     
  52.     SetCursor(&qd.arrow);
  53.     StandardAlert(kErrorReporterAlertID);
  54.     
  55.     p2c((StringPtr)file);
  56. }
  57.  
  58.  
  59. TErrorReporter::~TErrorReporter()
  60. {
  61. }
  62.  
  63.